<%@ Page Language="C#" MasterPageFile="~/DoctorForum.Master" AutoEventWireup="true" Codebehind="Home.aspx.cs" Inherits="WebForum.Home" Title="Doctor Forum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="art-Block">
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="l">
                </div>
                <div class="r">
                </div>
                <div class="art-header-tag-icon">
                    <div class="t">
                        Login</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div class="art-BlockContent-body">
                    <div>
                        <table width="100%">
                            <tr>
                                <td style="height: 15px">
                                    User Name</td>
                                <td style="height: 15px">
                                    <asp:TextBox ID="TextBoxUserNameLogin" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Password</td>
                                <td>
                                    <asp:TextBox ID="TextBoxPasswordLogin" runat="server" TextMode="Password"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="ButtonLogin" runat="server" Text="Login" OnClick="ButtonLogin_Click" CausesValidation="False" /></td>
                            </tr>
                        </table>
                    </div>
                    <div class="cleared">
                    </div>
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Panel ID="PanelRegInfo" runat="server">
        <div style="text-align: center; width: 100%; font-weight: bold;">
            Register new account</div>
        <table width="100%">
            <tr>
                <td align="right" style="width: 171px">
                    User Name:</td>
                <td>
                    <asp:TextBox ID="TextBoxUserName" runat="server"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUserName" Display="Dynamic" ErrorMessage="Enter UserName"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Password:</td>
                <td>
                    <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxPassword" Display="Dynamic" ErrorMessage="Enter Password"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Confirm Password:</td>
                <td>
                    <asp:TextBox ID="TextBoxConfirmPassword" runat="server" TextMode="Password"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxConfirmPassword" Display="Dynamic" ErrorMessage="Enter Confirm Password"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBoxConfirmPassword" ControlToValidate="TextBoxPassword" Display="Dynamic" ErrorMessage="Password Not Match"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Email:</td>
                <td>
                    <asp:TextBox ID="TextBoxEmail" runat="server"></asp:TextBox></td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail" Display="Dynamic" ErrorMessage="Email Not Valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Name:</td>
                <td>
                    <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="Enter Real Name"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Age:</td>
                <td>
                    <asp:TextBox ID="TextBoxAge" runat="server"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxAge" Display="Dynamic" ErrorMessage="Enter Age"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBoxAge" Display="Dynamic" ErrorMessage="RangeValidator" MaximumValue="100" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Location:</td>
                <td>
                    <asp:TextBox ID="TextBoxLocation" runat="server"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBoxLocation" Display="Dynamic" ErrorMessage="Enter your location"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    User Type:</td>
                <td>
                    <asp:RadioButton ID="RadioButtonNormalUser" runat="server" GroupName="Type" Text="Normal user" Checked="True" />
                    <asp:RadioButton ID="RadioButtonDoctor" runat="server" GroupName="Type" Text="Doctor" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                    Privacy:</td>
                <td>
                    <asp:CheckBox ID="CheckBoxPrivacy" runat="server" Text="Public Your Information" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 171px">
                </td>
                <td>
                    <asp:Button ID="ButtonRegister" runat="server" Text="Register" Height="28px" OnClick="ButtonRegister_Click" /></td>
                <td>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="PanelNormalSuccess" runat="server" Visible="false">
        <asp:Label ID="LabelUserWellCome" runat="server" Text="Label"></asp:Label><br />
        <a href="AllForum.aspx">Click here go to forum</a>
    </asp:Panel>
    <asp:Panel ID="PanelDoctorSuccess" runat="server" Visible="false">
        <asp:Label ID="LabelDoctorWellCome" runat="server" Text="Label"></asp:Label><br />
        <a href="AllForum.aspx">Click here go to forum</a>
        <br />
        <asp:LinkButton ID="LinkButtonMoreDotorInfo" runat="server" OnClick="LinkButtonMoreDotorInfo_Click"> Click <b>here</b> to update more info</asp:LinkButton>
    </asp:Panel>
    <asp:Panel ID="PanelDoctorMoreInfo" runat="server" Visible="false">
        <div style="text-align: center; width: 100%; font-weight: bold;">
            Register new account</div>
        <table>
            <tr>
                <td>
                    Workplace:
                </td>
                <td>
                    <asp:TextBox ID="TextBoxWorkplace" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Specialization:
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSpecialization" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Experience:
                </td>
                <td>
                    <asp:TextBox ID="TextBoxExperience" TextMode="MultiLine" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Achieveme:
                </td>
                <td>
                    <asp:TextBox ID="TextBoxAchieveme" TextMode="MultiLine" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="ButtonUpdate" runat="server" Text="Update" OnClick="ButtonUpdate_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
